.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "DOT2RUBY" "1" "April 2013" "" ""
.
.SH "NAME"
\fBdot2ruby\fR \- create a ruby script from a graphviz script
.
.SH "SYNOPSIS"
\fBdot2ruby\fR [\fB\-o\fR\fIfile\fR] [\fB\-T\fR\fIformat\fR] [\fB\-h\fR] [\fB\-V\fR] \fIscript\fR
.
.SH "DESCRIPTION"
\fBdot2ruby\fR is a tool that allows you to create a ruby script from a graphviz script\.
.
.P
See </usr/share/doc/ruby\-graphviz/> for more details\.
.
.SH "OPTIONS"
.
.TP
\fB\-o\fR, \fB\-\-output\-file\fR [\fIfile\fR]
Path to output image file (default STDOUT)
.
.TP
\fB\-T\fR, \fB\-\-output\-format\fR [\fIformat\fR]
Output format (default: png)
.
.TP
\fB\-p\fR, \fB\-\-path\fR
Graphviz path
.
.TP
\fB\-V\fR, \fB\-\-version\fR
Show version
.
.TP
\fB\-h\fR, \fB\-\-help\fR
Show this usage message
.
.SH "EXAMPLE"
.
.nf

$ cat hello\.dot
digraph G {Hello\->World;}

$ dot2ruby hello\.dot
# This code was generated by dot2ruby\.g

require \'rubygems\'
require \'graphviz\'
graph_g = GraphViz\.digraph( "G" ) { |graph_g|
  graph_g[:bb] = \'0,0,70,108\'
  node_hello = graph_g\.add_nodes( "Hello", :height => \'0\.5\', :label => \'\eN\', :pos => \'35,90\', :width => \'0\.88889\' )
  graph_g\.add_edges( "Hello", "World", :pos => \'e,35,36\.413 35,71\.831 35,64\.131 35,54\.974 35,46\.417\' )
  node_world = graph_g\.add_nodes( "World", :height => \'0\.5\', :label => \'\eN\', :pos => \'35,18\', :width => \'0\.97222\' )
}
puts graph_g\.output( :canon => String )
.
.fi
.
.SH "AUTHOR"
Copyright 2004\-2013 Gregoire Lejeune
.
.P
This manual page is written by Praveen Arimbrathodiyl \fIpraveen@debian\.org\fR for Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd)\.
